package wang.chunfan.springcloud.learning.bus.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author wangchunfan
 * @Date 2020/5/25 17:00
 **/
@RefreshScope
@RestController
public class BusClientController {
    @Value("${bus.info}")
    private String busInfo;

    @RequestMapping("/bus-info")
    public String getBusInfo() {
        return busInfo;
    }
}
